<script type="text/javascript">
//<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        var point = new GLatLng(37.4419, -122.1419)
        map.setCenter(point, 13);

        var marker = new GMarker(point, {draggable: true});

        GEvent.addListener(marker, "dragstart", function() {
          map.closeInfoWindow();
        });

        GEvent.addListener(marker, "dragend", function() {
          marker.openInfoWindowHtml("Over here: " + marker.getPoint().lat() + " " + marker.getPoint().lng());
        });

        map.addOverlay(marker);
      }
    }
//]]>
</script>
load();
map